package com.jiexinyun.JdbcUtil;

public class ColumnInfo {

    private String name;
    private String type;
    private int size;        // 列长度（如 VARCHAR(255) 中的 255）
    private int precision;   // 数值类型总位数（如 DECIMAL(10,2) 中的 10）
    private int scale;       // 数值类型小数位（如 DECIMAL(10,2) 中的 2）
    private boolean nullable;

    // Getters and Setters
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getType() { return type; }
    public void setType(String type) { this.type = type; }
    public int getSize() { return size; }
    public void setSize(int size) { this.size = size; }
    public int getPrecision() { return precision; }
    public void setPrecision(int precision) { this.precision = precision; }
    public int getScale() { return scale; }
    public void setScale(int scale) { this.scale = scale; }
    public boolean isNullable() { return nullable; }
    public void setNullable(boolean nullable) { this.nullable = nullable; }

}
